#ifndef _FIG_UI_PAUSEMENU_H_
#define _FIG_UI_PAUSEMENU_H_

#include "fig_ui_popupmanager.h"
#include "gameflow/ui_popup.h"


class FIGUIPauseMenu : public FIGUIPopupAnimator
{
public:
	
	static FIGUIPauseMenu&				Instance();
    static std::string                  m_StaticFileName;
	

// MAIN MENU events

	virtual void	Show();
	virtual void	Hide();
	

	virtual void	Tick(float dt);

    void            Disable() { m_FoceDisable = true; };
    void            Enable() { m_FoceDisable = false; };

    void			RefreshUI();
	void			Toggle();
	void			DisableFor(float Sec) 
	{ 
#ifdef _PLATFORM_ANDROID
		m_ForceDisableTimer = Sec; 
#endif
	};

protected:

	void			Resume();


	void DELEGATE_CALL	OnButtonGotoMainMenu(ui::UIWidget::WIDGET_EVENT Event, ui::UIWidget* pWidget);
	void DELEGATE_CALL	OnYesGoToMainMenu(ui::UIWidget::WIDGET_EVENT Event, ui::UIWidget* pWidget);
	void DELEGATE_CALL	OnButtonResume(ui::UIWidget::WIDGET_EVENT Event, ui::UIWidget* pWidget);

	void DELEGATE_CALL	OnButtonGotoFacebook(ui::UIWidget::WIDGET_EVENT Event, ui::UIWidget* pWidget);
	void DELEGATE_CALL	OnButtonGotoTwitter(ui::UIWidget::WIDGET_EVENT Event, ui::UIWidget* pWidget);
	void DELEGATE_CALL	OnButtonGoto2DStar(ui::UIWidget::WIDGET_EVENT Event, ui::UIWidget* pWidget);

	void DELEGATE_CALL	OnButtonFullVersion(ui::UIWidget::WIDGET_EVENT Event, ui::UIWidget* pWidget);
	void DELEGATE_CALL	OnButtonSettings(ui::UIWidget::WIDGET_EVENT Event, ui::UIWidget* pWidget);

    
    bool                m_FoceDisable;
	float				m_ForceDisableTimer;
    
    FIGUIPauseMenu();

};


#endif //_PVI_UI_WRAPPER_H_